﻿<Window x:Class="DynamicUIFramework.NameDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="NameDialog"
        Width="269"
        Height="185">
    <Grid>
        <TextBox Name="txtName"
                 Width="139"
                 Height="23"
                 Margin="0,23,48,0"
                 HorizontalAlignment="Right"
                 VerticalAlignment="Top" />
        <TextBlock Name="tbName"
                   Height="23"
                   Margin="20,26,0,0"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Text="Name: " />
        <TextBlock Name="tbTitle"
                   Height="23"
                   Margin="15,0,0,66"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Bottom"
                   Text="Title: " />
        <TextBox Name="txtTitle"
                 Width="139"
                 Height="23"
                 Margin="0,53,48,0"
                 HorizontalAlignment="Right"
                 VerticalAlignment="Top" />
        <Button Name="btnOK"
                Width="75"
                Height="23"
                Margin="29,105,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnOK_Click"
                Content="确定" />
        <Button Name="btnCancel"
                Width="75"
                Height="23"
                Margin="137,105,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnCancel_Click"
                Content="取消" />
    </Grid>
</Window>
